package com.atguigu.tingshu.album.service;

import com.atguigu.tingshu.model.album.TrackInfo;
import com.atguigu.tingshu.query.album.TrackInfoQuery;
import com.atguigu.tingshu.vo.album.AlbumTrackListVo;
import com.atguigu.tingshu.vo.album.TrackInfoVo;
import com.atguigu.tingshu.vo.album.TrackListVo;
import com.atguigu.tingshu.vo.album.TrackStatVo;
import com.atguigu.tingshu.vo.order.TrackOrderVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

public interface TrackInfoService extends IService<TrackInfo> {

    void saveTrackInfo(TrackInfoVo trackInfoVo);

    Page<TrackListVo> findUserTrackPage(Page<TrackListVo> iPage, TrackInfoQuery query);

    void removeTrackInfo(Long id);

    void updateTrackInfo(Long id, TrackInfoVo trackInfoVo);

    Page<AlbumTrackListVo> findAlbumTrackPage(Page<AlbumTrackListVo> iPage, Long albumId);

    TrackStatVo getTrackStatVo(Long id);

    Map<String, Object> getPlayToken(Long trackId);

    List<TrackOrderVo> findUserTrackPaidList(Long trackId);

    List<TrackInfo> findPaidTrack(Long trackId, Integer trackCount);
}
